@echo off
cd js
rmdir /S /Q min
mkdir min
for %%a in (*.js) do java -jar ../yuicompressor.jar %%a > min/%%a & echo compressing %%a ...
cd min
mkdir kernel
cd ../kernel
for %%a in (*.js) do java -jar ../../yuicompressor.jar %%a > ../min/kernel/%%a & echo compressing kernel/%%a ...
cd ../min
mkdir gui
cd ../gui
for %%a in (*.js) do java -jar ../../yuicompressor.jar %%a > ../min/gui/%%a & echo compressing gui/%%a ...
cd ../min
mkdir app
cd ../app
for %%a in (*.js) do java -jar ../../yuicompressor.jar %%a > ../min/app/%%a & echo compressing app/%%a ...
cd ..
pause